import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            redirect: '/home',
        },
        {
            path: '/tabs',
            name: 'tabs',
            component: () => import('@/views/tabs/TabsView.vue'),
            children: [
                {
                    path: '/home',
                    name: 'home',
                    component: () => import('@/views/tabs/home/HomeView.vue'),
                },
                { name: 'order', path: '/order', component: () => import('@/views/tabs/order/OrderView.vue') },
                { name: 'me', path: '/me', component: () => import('@/views/tabs/me/MeView.vue') },
            ]
        }
    ],
})

export default router
